package com.tyj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tyj.common.utils.PageUtils;
import com.tyj.gulimall.product.entity.CategoryEntity;
import com.tyj.gulimall.product.vo.web.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author tanyoujie
 * @email 983629093@qq.com
 * @date 2021-02-09 19:09:40
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> getCategoryList();

    /**
     * 找到catelogId的完整路径
     * [父/子/孙]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catalog2Vo>> getCategoryJson();
}

